#ifndef __MYFILE_SCENE_H__
#define __MYFILE_SCENE_H__

#include "cocos2d.h"
#include "StarMatrix.h"
#include "network/HttpResponse.h"
#include "network/HttpRequest.h"
#include "network/HttpClient.h"

using namespace cocos2d::network;
class Myfile : public cocos2d::Layer
{
public:
    static cocos2d::Scene* createScene();

    virtual bool init();

	void writeFile();
	void readFile();
	void MyUserDefaule();
	void http();
	void complete(HttpClient* client, HttpResponse* response);
   
    CREATE_FUNC(Myfile);

	bool onMyTouchBegan(cocos2d::Touch* touch, cocos2d::Event* unused_event);
	
private:
	cocos2d::FileUtils* pFileUtils;
	cocos2d::UserDefault* userDefule;
};

#endif // __HELLOWORLD_SCENE_H__
